package net.zjitc.service.Impl;

import net.zjitc.mapper.DistrictMapper;
import net.zjitc.pojo.District;
import net.zjitc.service.DistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author admin
 * @Date 2019/5/28 8:59
 */
@Service
@Transactional
public class DistrictServiceImpl implements DistrictService {
    @Autowired
    DistrictMapper districtMapper;

    @Override
    public List<District> findAll() {
        return districtMapper.findAll();
    }
}
